package com.lagou.sqlSession;

import com.lagou.pojo.Configuratioin;

/**
 * @Description:
 * @Author: yw
 * @Date: 2021/7/25 10:45
 **/
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configuratioin configuratioin;

    public DefaultSqlSessionFactory(Configuratioin configuratioin) {
        this.configuratioin = configuratioin;
    }

    @Override
    public SqlSesstion openSession() {
        return new DefaultSqlSession(configuratioin);
    }
}
